package com.pets;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.UUID;

@SpringBootTest
public class ce {
    @Test
    void aa(){
        // 使用UUID生成默认昵称，并截取前6个字符
        String nickname = UUID.randomUUID().toString().replace("-", "").substring(0, 6);
        System.out.println("默认昵称"+nickname);
    }

}
